package com.house.service;

import com.github.pagehelper.PageInfo;
import com.house.entity.House;
import com.house.util.HouseCondition;
import com.house.util.PageParmeter;

public interface HouseService {
    public int addHouse(House house);       //添加

    public PageInfo<House>  getHouseByUser(Integer userid,PageParmeter pageParmeter);

    /**
     * 删除出租房|恢复出租房
     * @param id
     * @param delState 1 表示删除   0表示恢复
     * @return
     */
    public int deleteHouse(String id,Integer delState);     //删除

    public House getHouse(String id);
    public House gestHouse(String id);

    public PageInfo<House> getBroswerHouse(HouseCondition houseCondition);


}
